//
//  HorizontalScroller.h
//  Rong360
//
//  Created by tianliwei on 7/2/14.
//  Copyright (c) 2014 tianliwei. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HorizontalScroller;

@protocol HorizontalScrollerDelegate<NSObject>
@optional
- (void)horizontalScroller:(HorizontalScroller *)scroller didSelectColumnAtIndex:(NSInteger)index;
- (CGFloat)horizontalScroller:(HorizontalScroller *)scroller heightForColumnAtIndex:(NSInteger)index;
@end

@interface HorizontalScroller : UIScrollView<UIScrollViewDelegate>
@property(nonatomic, assign)NSInteger buttonGap;
@property(nonatomic, assign)NSInteger buttonHeight;
@property(nonatomic, assign)NSInteger buttonWidth;
@property(nonatomic, assign)NSInteger maskWidth;
@property(nonatomic, strong)NSArray *buttonData;
@property(nonatomic, strong)CAGradientLayer *maskLayer;
@property(nonatomic, assign)id<HorizontalScrollerDelegate> hsDelegate;
- (void)setButtonData:(NSArray *)data buttonGap:(NSInteger)buttonGap buttonWidth:(NSInteger)buttonWidth buttonHeight:(NSInteger)buttonHeight maskWidth:(NSInteger)maskWidth;
@end
